// pages/signup/signup.js
Page({
  data: {
    array:[
      [{
      activityName: '睡觉会',
      activitySite: '宿舍',
      activityStatus: '活动未开始',
      attendStatus: '未报名',
      startTime: '2018-11-01 15:22:35',
      endTime: '2018-11-29 15:24:27'
    },{
      activityName: '上课会',
      activitySite: '一教',
      activityStatus: '活动未开始',
      attendStatus: '未报名',
      startTime: '2019-07-12 00:00:00',
      endTime: '2019-07-27 00:00:00'
    },{
      activityName: '下课会',
      activitySite: '二教',
      activityStatus: '活动未开始',
      attendStatus: '未报名',
      startTime: '2020-10-21 00:00:00',
      endTime: '2020-10-30 00:00:00'
    }],[{
        activityName: '睡觉会',
        activitySite: '宿舍',
        activityStatus: '活动未开始',
        attendStatus: '未报名',
        startTime: '2018-11-01 15:22:35',
        endTime: '2018-11-29 15:24:27'
      }]
    ],
    titles: ["活动报名", "活动查看"],
    current: "0",
    current_scroll: "0",
    arrayId: "0"
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },
  handleChange ({ detail }) {
    this.setData({
        current: detail.key,
        arrayId: detail.key
    });
  },

  handleChangeScroll ({ detail }) {
      this.setData({
          current_scroll: detail.key
      });
  },

  onSearch() {
    console.log("search")
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})